<html>
<head>
<style>

    @page {
        size: b6;
        border-color:white;
        border-right: 0px;
        border-left: 5px;
        border-bottom: 6px;
        border-top: 6px;
    }
</style>
    </head>
<body>
<table style="width:100%; text-align: center">
    <br/><br/>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TOP BRAND S.R.L.S</p>
    </table>
<br>
DATA: <h3>{{utils.dateToString(pageData["dao"].data_inserimento)}}</h3>
    <br>
CLIENTE : <h4 style="display:inline;"> {{pageData["dao"].cliente_testata_scontrino.ragione_sociale}}</h4>
<br>
<h3>RIGHE&nbsp;&nbsp; ({{dao.righe|length}})</h3>
  <table width="70mm">
        <tr>
        <th > Descrizione</th>
        <th >Q.a'</th>
        <th >TOT.</th>
        </tr>
{% for riga in pageData["dao"].righe %}
            <tr >
            <td width="70%">&nbsp; {{riga.descrizione[:27]}}</td>
            <td  width="10%">{{utils.mN(riga.quantita or 0,0)}}</td>
            <td width="20%" style="text-align: right">{{utils.mN((riga.quantita * riga.prezzo_scontato ) or 0,2)}}</td>
        </tr>
            {% endfor %}
  </table>
  <br>
  <br>
<table>
    <tr>
 TOTALE SCONTRINO: <h2> {{utils.mNLC(pageData["dao"].totale_scontrino or 0,2)}}</h2>
    </tr>
    </table>
</body>
</html>
